FROM nginx

RUN /bin/cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && echo 'Asia/Shanghai' >/etc/timezone
RUN mkdir -p /usr/share/nginx/html/front
COPY ./dist/ /usr/share/nginx/html/front/
RUN chmod -R 777 /usr/share/nginx/html/
RUN rm -f /etc/nginx/nginx.conf
RUN rm -f /etc/nginx/conf.d/default.conf
COPY ./nginx.conf /etc/nginx/
COPY ./default.conf /etc/nginx/conf.d/


EXPOSE 80
